home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / LNSEFCTS.ZIP / WATER.POV < prev   
Encoding:
Text File  |  1997-07-18  |  1.2 KB  |  42 lines

  1. // LENS EFFECTS: SPARKLING WATER ANIMATION
  2. // ***************************************
  3. // This animation shows how you can use the effect_flicker,
  4. // effect_jitter, and effect_spin options to animate lens effects.
  5. // It also shows how the options_only variable can be used to alter
  6. // predefined lens effects.
  7. //
  8. // NOTE: This scene should be rendered as a cyclic animation.
  9.  
  10. // WATER BACKGROUND
  11.    plane {y, 0
  12.       pigment {rgb <0, .5, .8>}
  13.       normal {ripples 1 scale 30 frequency 15 phase -clock}
  14.       finish {phong .7 phong_size 20}}
  15.  
  16. // LIGHTING
  17.    light_source {<0, 300, 200> rgb 1}
  18.  
  19. // CAMERA OPTIONS
  20.    #declare camera_location = <0, 15, -10>
  21.    #declare camera_look_at = <0, 0, 0>
  22.  
  23. // EFFECT OPTIONS
  24.    #declare effect_type = "Star"
  25.    #declare options_only = true #include "LENS.INC"
  26.  
  27. // THE FOLLOWING LINE REMOVES THE RAYS FROM THE LENS EFFECT
  28.    #declare rays_type = 0
  29.  
  30. // LENS EFFECT ANIMATION OPTIONS
  31.    #declare effect_flicker = 1
  32.    #declare effect_spin = 1 / 6
  33.    #declare effect_jitter = 5
  34.    #declare effect_location = <0, 0, 0>
  35.  
  36. // CREATE MULTIPLE LENS EFFECT
  37.    #declare C = 0 #while (C < 10)
  38.       #include "LNSEFCTS.INC"
  39.    #declare C = C + 1 #end
  40.  
  41.    global_settings {max_trace_level 20}
  42.